package com.itheima.model.common.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

@Data
@TableName("trade")
public class Trade {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 关联的账户id
     */
    @TableField(value = "aid")
    private Integer aid;
    /**
     * 操作类型：存款/取款/转账
     */
    @TableField(value = "tradeType")
    private String tradeType;
    /**
     * 操作金额
     */
    @TableField(value = "tradeMoney")
    private BigDecimal tradeMoney;

    /**
     * 操作时间
     */
    @TableField(value = "tradeTime")
    private LocalDate tradeTime;

    /**
     * 日志详情
     */
    @TableField(value = "tradeDigest")
    private String tradeDigest;
}
